//
//  YCSSKeychain.m
//  YCVillageDoctor
//
//  Created by Mac on 2017/6/9.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import "YCSSKeychain.h"
#import "SSKeychain.h"
@implementation YCSSKeychain
//获取数据
+(NSString *)getValueforkey:(NSString *)key{
    
    return [SSKeychain passwordForService:[NSBundle mainBundle].bundleIdentifier account:key];
}
//保存数据
+(BOOL)saveValue:(NSString *)value andKey:(NSString *)key{
    
   return [SSKeychain setPassword:value forService:[NSBundle mainBundle].bundleIdentifier account:key];
}
@end
